package com.thinkgem.jeesite.test.http.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.test.http.dao.HttpUserDao;
import com.thinkgem.jeesite.test.http.entity.HttpUser1;

@Service
@Transactional(readOnly=true)
public class HttpUserService{

	@Autowired
	private HttpUserDao httpUserDao;
	
	public List<HttpUser1> getList(String id,String remarks){
		List<HttpUser1> hus = new ArrayList<HttpUser1>();
		HttpUser1 hu1 = new HttpUser1();
		hu1.setId(id);
		hu1.setName("name1");
		hu1.setPwd("pwd1");
		hu1.setRemarks(remarks);
		HttpUser1 hu2 = new HttpUser1();
		hu2.setId("id2");
		hu2.setName("name2");
		hu2.setPwd("pwd2");
		hu2.setRemarks("remarks2");
		hus.add(hu1);
		hus.add(hu2);
		return hus;
	}
}
